<template>
		<view>
		
		<view class="Hzi" v-for="(item,index) in list">
			<view class="Fatrea">
				<view class="fatreas">{{item.titx}}</view>
				<view class="diErcen">
				<view class="tetx">{{item.titxname}}</view>
				<view class="rigth"  @click="dianTiao(item.titx)">{{item.adu}}</view>
				</view>
			</view>
			
		</view>
	</view>
</template>

<script>
	export default {
		data(){
			return{
				list:[]
			}
		},
		mounted(){
			this.getlist()
		},
		methods:{
			async getlist(){
				const res=await uni.$http.get('/64647ed15bbac3001ab9f3a7/example/kaoshi')
				this.list=res.data.data.list[0].children
				console.log('获取',this.list)
			},
			dianTiao(name){
				console.log('这是传输下来的',name)
				uni.navigateTo({
					url:"/subpkg/kaoshiTimu/kaoshiTimu?name="+name
				})
			}
		}
		
		}
				
</script>

<style>
	.Dahezi{
		display: flex;
		background-color: white;
		height: 50px;
		
	}
	.Xiaoerzi{
		margin-left: 20px;
		padding-top: 15px;
		
	}
	
	.Fatrea{
	width: 80%;
	margin: 0 auto;
	background-color: white;
	height: 100px;
	border-radius: 13px;
	}
	.Hzi{
		margin-top: 10px;
		
	}
	.diErcen{
		display: flex;
		/* 两端对齐 */
		justify-content: space-between;
		margin-top: 30px;
	}
	.rigth{
		font-size: 13px;
		background-color: rgb(253,240,240);
		color: rgb(248, 197, 199);
	}
	.fatreas{
		font-weight: bold;
	}
	.tetx{
		font-size: 12px;
	}
</style>